package com.smart.campus.controller;

import com.smart.campus.dto.SysMenu;
import com.smart.campus.interfaces.SysMenuServiceApi;
import com.smart.campus.service.SysMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class SysMenuController implements SysMenuServiceApi {
    @Autowired
    private SysMenuService sysMenuService;

    @Override
    public List<SysMenu> findSysMenuList(SysMenu sysMenu) {
        return sysMenuService.findSysMenuList(sysMenu);
    }

    @Override
    public List<String> selectPermsByUserId(Long userId) {
        return sysMenuService.selectPermsByUserId(userId);
    }
}
